package com.danciyixue.boot.dcyx.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.danciyixue.boot.dcyx.model.entity.Programs;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.danciyixue.boot.dcyx.model.entity.Programs;
import com.danciyixue.boot.dcyx.model.query.ProgramsQuery;
import com.danciyixue.boot.dcyx.model.vo.ProgramsVO;
import com.danciyixue.boot.dcyx.model.vo.CurrentProgramVO;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

/**
 * 教材信息Mapper接口
 *
 * @author youlaitech
 * @since 2025-06-15 16:24
 */
@Mapper
public interface ProgramsMapper extends BaseMapper<Programs> {

    /**
     * 获取教材信息分页数据
     *
     * @param page 分页对象
     * @param queryParams 查询参数
     * @return {@link Page<ProgramsVO>} 教材信息分页列表
     */
    Page<ProgramsVO> getProgramsPage(Page<ProgramsVO> page, ProgramsQuery queryParams);

    /**
     * 根据ID获取教材详情
     *
     * @param id 教材ID
     * @return 教材详情
     */
    ProgramsVO getProgramById(@Param("id") Long id);

  }
